<?php echo $this->element('menu');?>
<div class="container">
<div>
<div class="wrapper_listfriend" >
<div class="title_friend row" style="width: auto;height: auto;text-align: center;font-size: 40px;font-family: cursive;">
   <h1 style="font-size: larger;background:#E9E9E9;">Danh sách bạn bè</h1></div>
 
<?php
if($list)
foreach ($list as $fr):{?>
<div class="list_friend col-md-3" style="padding-top: 20px;">
<div class="any_friend" style="
    width: 200px;
    height: 60px;
    border: 1px solid black;
    padding: 5px;
    border-radius: 5px;
    box-shadow: 1px 1px 5px #888;
    margin: 0px 20px 20px 0px;
    background: #FFF;
">
<div class="avatar_friend" style="
    float: left;
    width: 50px;
    height: auto;
"> 
    <a href="/pinterest/Users/view/<?php echo $fr['Profile']['user_id'];?>">
    <?php  
    echo $this->Html->image($fr['Profile']['avatar'],array('alt'=>'CakePHP','width'=>'50px','height'=>'50px','class'=>'img-circle')); 
    ?> 
    </a>
</div>
<div class="name_button" style="
    float: right;
    width: 130px;
">
    <div class="name_friend" style=" margin:3px;"> <?php      echo $fr['Profile']['name']; ?> </div>
<div class="button_friend" style="margin-left: 3px;"><?php      echo $this->Html->link('Hủy',array('controller'=>'FriendUsers','action'=>'destroyfriend',$name['User']['id'],$fr['User']['id'])); ?>  </div>
</div>
</div> 
</div>
<?php }endforeach;
else echo 'Không có ai';
?>
</div>
</div>
</div>
